import Request from '@/utils/request/request-util';

/**
 * 设备台账-API接口
 *
 * @author PANL
 * @date 2023/12/04 09:17
 */
export class EquipmentApi {

  /**
   * 获取分页列表
   *
   * @author PANL
   * @date 2023/12/04 09:17
   */
  static findPage(params) {
    return Request.getAndLoadData('/equipment/page', params);
  }

  /**
   * 添加设备台账
   *
   * @author PANL
   * @date 2023/12/04 09:17
   */
  static add(params) {
    return Request.post('/equipment/add', params);
  }

  /**
   * 编辑设备台账
   *
   * @author PANL
   * @date 2023/12/04 09:17
   */
  static edit(params) {
    return Request.post('/equipment/edit', params);
  }

  /**
   * 删除单个设备台账
   *
   * @author PANL
   * @date 2023/12/04 09:17
   */
  static delete(params) {
    return Request.post('/equipment/delete', params);
  }

  /**
   * 删除批量设备台账
   *
   * @author PANL
   * @date 2023/12/04 09:17
   */
  static batchDelete(params) {
    return Request.post('/equipment/batchDelete', params);
  }

  /**
   * 设备台账详情
   *
   * @author PANL
   * @date 2023/12/04 09:17
   */
  static detail(params) {
    return Request.getAndLoadData('/equipment/detail', params);
  }

}